﻿using System;

namespace good1.ApplicationServices.Interface
{
    /// <summary>
    /// If cookies are not available as an implementation detail then of course some other persistance could be found, db, xml, session....
    /// </summary>
    public interface IGoodCookieService
    {
        string UserEmail { get; set; }
        int? UserId { get; set; }
        string FriendlyName { get; set; }
        DateTime? LastVisit { get; set; }
        bool InsideHttpPostEvent { get; set; }
        void AddCookie(string name, string value);
        void AddAuthenticationCookie(string name, bool rememberMe, string roles);
        string AuthenticatedName { get; }
        string[] AuthenticatedRoles { get; }

        
    }
}
